import javax.swing.JDialog;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;
import javax.swing.SwingConstants;

public class UnoAbout_UI extends JDialog
{

	private static final long serialVersionUID = 6416509906021416480L;
	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch UnoAbout_UI
	 */
	public static void launch()
	{
		try
		{
			UnoAbout_UI dialog = new UnoAbout_UI();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e)
		{
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public UnoAbout_UI()
	{
		String message = "\nUnonymous is:\n\n \tJamie Olsen\r\n\n \tKevin R Hurst\n\n \tLevi Kushlan\n\n \tVictor Marrufo\n\n \tRonnie Peltier";
		Uno_UI.setAttributesDialog(this, "About");
		Uno_UI.setUIManager();

		getContentPane().setLayout(new BorderLayout());
		contentPanel.setForeground(Uno_UI.WHITE);
		contentPanel.setBackground(Uno_UI.BLACK);
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		
		JLabel lblAbout = new JLabel("Unonymous - Uno | About");
		lblAbout.setForeground(Uno_UI.WHITE);
		lblAbout.setBackground(Uno_UI.BLACK);
		lblAbout.setFont(Uno_UI.CONSOLAS14);
		lblAbout.setVerticalAlignment(SwingConstants.TOP);
		lblAbout.setBounds(20, 11, 404, 14);
		contentPanel.add(lblAbout);
		
		JTextArea textArea = new JTextArea(message);
		textArea.setEditable(false);
		textArea.setLineWrap(true);
		textArea.setWrapStyleWord(true);
		textArea.setForeground(Uno_UI.WHITE);
		textArea.setBackground(Uno_UI.BLACK);
		textArea.setFont(Uno_UI.CONSOLAS14);
		textArea.setBounds(10, 36, 414, 215);
		
		JScrollPane scrollPane = new JScrollPane(textArea);
		scrollPane.setLocation(20, 36);
		scrollPane.setSize(404, 215);
		scrollPane.setPreferredSize(new Dimension(414, 215));
		contentPanel.add(scrollPane);
	}
}
